package data.nanjing.expo.models.domain.dto.exhibition;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 上传展区信息
 *
 * @author ChanJi
 * @create 2018-05-23 21:45
 **/
public class AreaDto {
    private Integer id;
    @NotBlank(message = "展区名不能为空")
    private String areaName;
    @NotNull(message = "展位信息不能为空")
    @Valid
    private List<StandDto> stand = new ArrayList<>();
    private Integer hallId;
    private Integer expoId;
    @JsonIgnore
    private Date updateTime;
    @JsonIgnore
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public List<StandDto> getStand() {
        return stand;
    }

    public void setStand(List<StandDto> stand) {
        this.stand = stand;
    }

    public Integer getHallId() {
        return hallId;
    }

    public void setHallId(Integer hallId) {
        this.hallId = hallId;
    }

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "AreaDto{" +
                "id=" + id +
                ", areaName='" + areaName + '\'' +
                ", stand=" + stand +
                ", hallId=" + hallId +
                '}';
    }
}
